<!DOCTYPE html>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	    <meta name="format-detection" content="telephone=no">
	    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
	    <link href="../../css/bootstrap.css" rel="stylesheet" />
	    <link href="../../css/cover.css" rel="stylesheet" />
	    <link href="../../css/font-awesome.min.css" rel="stylesheet" />
	    <title>荆州千网汇信息科技有限公司</title>
	    <script src="../../js/jquery-2.2.3.min.js"></script>
	    <script src="../../js/jquery.flexslider-min.js"></script>
	    <script src="../../js/rem.js"></script>
	    <script src="../../js/itnetcao.js"></script>
	    <link href="../../js/layui/css/layui.css" rel="stylesheet" />
	    <link href="../../js/donghua/animsition.min.css" rel="stylesheet" />
	    <script src="../../js/donghua/animsition.min.js"></script>
	    <link rel="stylesheet" href="../../css/minirefresh.css" />
	    <link rel="stylesheet" href="../../css/common.css" />
	    <script type="text/javascript" src="../../js/minirefresh.js"></script>
	    <script type="text/javascript" src="../../js/common.js"></script>
		<title>exchange</title>
		
		
		
		
		<style type="text/css">
			body{
				font-size:16px;
			}
			* {
        		font-family:"微软雅黑";
			}

			.head {
				background-color: #FFB800;
				width: 100%;
				margin: 0px auto;
				height: 60px;
				line-height: 60px;
				padding-bottom: 5px;
				border-bottom: 5px solid rgba(0,0,0,0.1);
			}

			.logo {
				margin-top: 5px;
				font-size: 0.2rem;
				vertical-align: middle;
			}

			.head #span {
				vertical-align: middle;
				font-weight: bold;
				font-size: 0.2rem;
				color: #000000;
				position: relative;
				top: 10px;
				left: 10px;
			}

			.nav {
				font-size: 0.2rem;
				text-align: left;
				width: 100%;
				border-bottom: 5px solid rgba(0,0,0,0.1);
			}
			.nav table td {
				padding: 20px;
				height: 60px;
				width: 50%;
				border-bottom: 1px solid rgba(0,0,0,0.1);
			}
			.nav table td:nth-child(2) {
				text-align: right;
			}
			.nav tr:last-child{
				border-bottom: none;
			}
			.td-span{
				color: #CCCCCC;

			}
			.td-child2{
				position: relative;
				left: 10px;
			}
			.div-btn{
				width: 80%;
				margin: 0px auto;
				margin-top: 15px;
			}
			#btnOut{
				font-size: 0.2rem;
				width: 100%;
				height: 50px;
				background-color: #FFB800;
				border: none;
				margin-bottom:20px;
			}
		</style>
	</head>

	<body>
		
		<div class="page_top01 relative">
            <h3 class="text-center">设置</h3>
            <a href="javascript:;" class="animsition-link" data-animsition-out-class="fade-out-right" data-animsition-out-duration="500" onclick="history.go(-1)">
                <img src="../../images/icon_left.png" class="img-responsive reture_img" /></a>
        </div>
        
		<div class="nav">
			<table>
				<tr id="loginpwd" onclick="location.href='./set/retrieve.html'">
					<td>修改密码</td>
					<td></td>
					<td>></td>
				</tr>
				<tr onclick="location.href='./set/exchangePwd.html'">
					<td id="tpwd" >修改交易密码</td>
					<td></td>
					<td>></td>
				</tr>
			</table>
		</div>
		<div class="nav">
			<table>
				<tr>
					<td>手机</td>
					<td class="td-child2 userIphones"></td>
					<td></td>
				</tr>
			</table>
		</div>
		<div class="nav">
			<table>
				<tr onclick="location.href='./set/bankNum.html'">
					<td>银行卡</td>
					<td><span class="td-span yinhangkaSet">未认证</span></td>
					<td>></td>
				</tr>
				<tr onclick="location.href='./set/alipay.html'">
					<td>支付宝</td>
					<td><span class="td-span zhifubaoSet">未绑定</span></td>
					<td>></td>
				</tr>
				<tr onclick="location.href='./set/wechat.html'">
					<td >微信</td>
					<td><span class="td-span weixinSet">未绑定</span></td>
					<td>></td>
				</tr>
			</table>
			<div class="div-btn">
			<input id="btnOut" type="button" value="退出账号" />
		</div>
		</div>

<script type='text/javascript'>

$(function() {
	$("#btnOut").click(function() {
		localStorage.removeItem("miningmachine_user");
		parent.window.location.href = "../login/login.html";
	})
})

// 设置用户id和手机号码
var userId = jQuery.parseJSON(localStorage.getItem("miningmachine_user")).userId;
$(".userIphones").text(jQuery.parseJSON(localStorage.getItem("miningmachine_user")).userIphone);


// 获取用户所有的财富信息
var url = localStorage.getItem("url") + "/user/controller/UserPropertyFindAllAPP.do";
var data = "userId=" + userId;
itcao.itGetAjaxBigData(url, data).done(function(result) {
	var json = jQuery.parseJSON(result);
	if(json.state == true) {

		var user = json.bean;
		for(var i=0; i<user.length; i++) {
			if(user[i].proType == 1) {
				$(".zhifubaoSet").text("已绑定");
			}
			if(user[i].proType == 2) {
				$(".weixinSet").text("已绑定");
			}
			if(user[i].proType == 3) {
				$(".yinhangkaSet").text("已认证");
			}
		}
	}else {
		alert(json.value);
	}
})
function updatePwd(){

}
</script>
		
	</body>

</html>
